package com.heima.apis.article;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.apis.dto.ArticleDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article")
public interface ArticleClient {

    @PostMapping(path = "/api/v1/article/save")
    public ResponseResult save(@RequestBody ArticleDto dto);
}
